package com.hyt.it.ogt.kq.service.bm.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Builder
@Data
@Accessors(chain = true)
@TableName("send_message_template")
@ApiModel(value="发送短信模板", description="发送短信模板")
public class SendMessageTemplate {

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "UUID", hidden = true)
    private String id;

    @ApiModelProperty(value = "模板标题", required = true)
    @NotNull(message = "模板标题")
    private String title;

    @ApiModelProperty(value = "模板内容", required = true)
    @NotNull(message = "模板内容")
    private String content;
}
